cmake_minimum_required(VERSION 2.6)
project(Nth)

set (NTH_MAJOR_VERSION 0)
set (NTH_MINOR_VERSION 0)
set (NTH_PATCH_VERSION 0)

if (MSVC)

	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} /Wall")
	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} /WX")
	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} /wd4100")
	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} /wd4255")
	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} /wd4668")
	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} /wd4820")
	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} /D_CRT_SECURE_NO_WARNINGS")

elseif(CMAKE_COMPILER_IS_GNUCC)

	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} -Wall")
	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} -Wextra")
	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} -Werror")
	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} -Wfatal-errors")
	set (COMPILER_WARNINGS "${COMPILER_WARNINGS} -Wno-unused-parameter")

endif()

subdirs(
	"${PROJECT_SOURCE_DIR}/hooks"
	"${PROJECT_SOURCE_DIR}/lib"
	"${PROJECT_SOURCE_DIR}/plugins"
	"${PROJECT_SOURCE_DIR}/main"
)

set (CPACK_PACKAGE_VENDOR "Holberware")
set (CPACK_PACKAGE_VERSION_MAJOR "0")
set (CPACK_PACKAGE_VERSION_MINOR "1")
set (CPACK_PACKAGE_VERSION_PATCH "0")

set (CPACK_DEBIAN_PACKAGE_DEPENDS "libgmp-dev")
set (CPACK_DEBIAN_PACKAGE_MAINTAINER "Taylor Holberton")

include (CPack)

